#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_PeDumpTool.h"
#include <qfiledialog.h>
class PeDumpTool : public QMainWindow
{
    Q_OBJECT

public:
    PeDumpTool(QWidget *parent = Q_NULLPTR);
	public slots:
	bool dumpProcess();
	bool showTHUNK();
	void tabChange(int);
	void SectionInfoChanged(QTableWidgetItem*);
	void select_history(QListWidgetItem *item);
	void fix_int();
	void select_dump();
	void select_another_dump();
	void getdiff();
	void create_reloc();
	void open_for_section_edit();
	void create_new_Section();
private:
	QFileDialog* dialog;
	void showSection(QString filename);
	QString Current_file;
	QVector<std::string> dumpedhistory;
	Ui::PeDumpToolClass ui;
	void Log(const QString& str);
};
